#!/usr/bin/env python
# -*- coding: utf-8 -*-
from socket import *

hostname = "edu.mmcs.sfedu.ru"
port = 8080
ipaddr = '192.168.0.100'
s = socket(AF_INET, SOCK_STREAM)
s.connect((ipaddr, port))
while True:
    str = raw_input(": ")
    if not str:
        break
    s.sendall(str.encode('utf-8'))
    response = s.recv(1024)
    print(response.decode('utf-8'))
s.close()
